using System;
using System.Collections.ObjectModel;

namespace dot_in.HTWKAidStation.Client
{
    public class MenuWeekGroup
    {
        public MenuWeekGroup(DateTime date)
        {
            this.Date = date;
            this.MenuItems = new ObservableCollection<MenuItem>();
        }

        public MenuWeekGroup(string dateString) : this(DateTime.Parse(dateString))
        {
        }

        public DateTime Date { get; set; }

        public string DayString
        {
            get
            {
                if (this.Date.Date == DateTime.Now.Date)
                {
                    return "Heute";
                }
                else if (this.Date.Date == DateTime.Now.Date.AddDays(1))
                {
                    return "Morgen";
                }
                else
                {
                    return this.Date.ToString("dd.MM.yyyy");
                }
            }
        }

        public ObservableCollection<MenuItem> MenuItems { get; set; }

    }
}